package com.ballyza.gals;

public class SemanticError extends AnalysisError
{
	private final String token;
	
    public SemanticError(String msg, int position)
	 {
        super(msg, position);
        this.token = "";
    }

    public SemanticError(String msg)
    {
        this(msg, "");
    }
    
    public SemanticError(String msg, String token, int position) {
    	this(msg, token);
    	setPosition(position);
    }
    
    public SemanticError(String msg, String token) {
    	super(msg);
    	this.token = token;
    }

	public String getToken() {
		return token;
	}
    
    
}
